﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Merchants
{
    public static class ShopBLL
    {
        public static int GetShopCount(IList<Condition> conditionArray)
        {
            return ShopDAL.GetShopCount(conditionArray);
        }

        public static List<ShopEntity> GetShopList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return ShopDAL.GetShopList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static ShopEntity GetShop(int shopID)
        {
            return ShopDAL.GetShop(shopID);
        }

        public static int InsertShop(ShopEntity shop)
        {
            return ShopDAL.InsertShop(shop);
        }

        public static int UpdateShop(ShopEntity shop)
        {
            return ShopDAL.UpdateShop(shop);
        }

        public static int DeleteShop(int shopID)
        {
            return ShopDAL.DeleteShop(shopID);
        }

        public static int SetShopEnable(int shopID)
        {
            return ShopDAL.SetShopEnable(shopID);
        }

        public static int HitShop(int shopID)
        {
            return ShopDAL.HitShop(shopID);
        }
    }
}
